#                                               -*- Autoconf -*-
# Process this file with autoconf to produce a configure script.

AC_PREREQ(2.59)
AC_INIT([dgnbbs], [0.3.0], [drangon.zhou@gmail.com])
AM_INIT_AUTOMAKE([-Wall foreign])
AC_CONFIG_SRCDIR([osutil/os_cfgfile.c])
# Checks for programs.
AC_PROG_CC
AC_PROG_RANLIB

# Checks for libraries.

# Checks for header files.
AC_HEADER_STDC
AC_CHECK_HEADERS([stddef.h stdint.h stdlib.h string.h sys/time.h syslog.h unistd.h])
AC_CHECK_HEADERS([fcntl.h sys/file.h])


# Checks for typedefs, structures, and compiler characteristics.
AC_C_CONST
AC_HEADER_TIME

# Checks for library functions.
AC_FUNC_MALLOC
AC_CHECK_FUNCS([gettimeofday memset])
AC_CHECK_FUNCS([strcasecmp strcspn strdup strspn])

# Output
AC_CONFIG_HEADER([config.h])
AC_CONFIG_FILES([
	Makefile
	osutil/Makefile
	bbscore/Makefile
])	

AC_OUTPUT
